package tests;

import java.util.GregorianCalendar;

import bus.Month;
import bus.Year;

import junit.framework.Assert;
import junit.framework.TestCase;

public class MonthTests extends TestCase {

	public MonthTests(String arg0) {
		super(arg0);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testMonth() {
		GregorianCalendar calendar = new GregorianCalendar();
		Month month = new Month(new Year(calendar, calendar.get(java.util.Calendar.YEAR)), 5);
		
		Assert.assertNotNull(month.getDays());
		Assert.assertEquals(30, month.getDays().size());
	}

}
